<div class="am-cf am-padding">
    <div class="am-fl am-cf">
        <strong class="am-text-primary am-text-lg">首页</strong> /
        <small>用户管理</small>
    </div>
</div>

<div class="am-padding">
    <!-- <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="{:U('userAdd')}">新增资讯</a> -->
</div>

<div class="am-g">
    <div class="am-u-sm-12">
        <table class="am-table am-table-bd am-table-striped admin-content-table">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>用户名</th>
                    <th>密码</th>
                    <th style="min-width: 150px;">用户昵称</th>
                    <th style="min-width: 150px;">用户积分</th>
                    <th style="min-width: 150px;">用户等级</th>
                    <th style="min-width: 150px;">创建时间</th>
                    <th style="min-width: 140px;">操作</th>
                </tr>
            </thead>
            <tbody>
                <foreach name="list" item="o">
                    <tr>
                        <td>{$o.id}</td>
                        <td>{$o.username}</td>
                        <td>{$o.password}</td>
                        <td>{$o.nickname}</td>
                        <td>{$o.points}</td>
                        <td>{$o.level}</td>
                        <td>{$o.createtime}</td>
                        <td>
                            <a onclick="if(!window.confirm('确定要重置密码吗?')) { return false;}" href="{:U('userPwdReset', 'id='.$o['id'])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">重置密码</a>
                            <a href="{:U('userUpdate', 'id='.$o['id'])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">修改</a>
                            <a onclick="if(!window.confirm('确定要删除吗?')) { return false;}" href="{:U('userDelete', 'id='.$o['id'])}" class="am-btn am-btn-default am-btn-xs am-text-secondary">删除</a>
                        </td>
                    </tr>
                </foreach>
            </tbody>
        </table>
    </div>
</div>